package com.seal.commons.exception.errors;

import com.seal.commons.exception.ErrorCode;

/**
 * 功能描述:CommonErrorCode <br/>
 *
 * @author huangyong
 * @date: 2020-04-27 21:42<br/>
 * @since JDK 1.8
 */
public enum CommonErrorCode implements ErrorCode {

    /**
     * 参数错误
     */
    ERROR_PARAMS(500100,  "参数错误"),
    STORE_FILE_UPLOAD_ERROR(500101,"文件上传异常"),

    STORE_FILE_QUERY_ERROR(500102,"文件查询异常"),
    ;

    private final int code;

    private final String message;

    CommonErrorCode(int code, String message){
        this.code = code;
        this.message = message;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }


}